<#--@ftlvariable name="htmlName" type="java.lang.String"-->
<#--@ftlvariable name="hobbies" type="java.util.List"-->
<#--@ftlvariable name="hobby" type="nxu.it.entity.Hobby"-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>注册界面</title>
    <style type="text/css">
        .field {
            margin: 1em;

        }

        h2 {
            margin: 1em;
            color: darkcyan;
        }

        h3 {
            margin: 1em;
            color: red;
        }

    </style>
</head>

<body>


<h2>
    欢迎注册
</h2>
<h3>
    <#if message??>
        ${message}
    </#if>
</h3>

<form action="./doRegister" method="post" autocomplete="off">
    <div class="field">
        <label>
            <span>学号</span>
            <input type="text" name="sno" required placeholder="请输入学号"/>
        </label>
    </div>

    <div class="field">
        <label>
            <span>密码</span>
            <input type="password" name="password"/>
        </label>
    </div>

    <div class="field">
        <label>
            <span>专业</span>
            <input type="text" name="major" required placeholder="请输入学号"/>
        </label>
    </div>

    <div class="field">
        <label>
            <span>年级</span>
            <input type="number" name="grade" required placeholder="请输入学号"/>
        </label>
    </div>


    <div class="field">
        <span>专业</span>
        <select name="department_id" id="department_id" required>
            <option value="">选择专业</option>
            <option value="1">信息工程学院</option>
        </select>
    </div>


    <div class="field">
        <span>验证</span>
        <input type="text" name="chapter"> <img src="/doChapter" width="60" align="center"/>
    </div>

    <div class="field">
        <input type="submit">
    </div>
</form>

</body>
</html>